package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchasePlanGoods", catalog="Id")
public class TcgPurchasePlanGoods extends BaseEntity<TcgPurchasePlanGoods> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="SpBm", nameJava="spBm", typeDataBase="varchar")
	private String spBm;
	@YsField(nameDataBase="StockAmount", nameJava="stockAmount", typeDataBase="decimal")
	private BigDecimal stockAmount;
	@YsField(nameDataBase="SpAmount", nameJava="spAmount", typeDataBase="int")
	private Integer spAmount;
	@YsField(nameDataBase="OrderStatus", nameJava="orderStatus", typeDataBase="tinyint")
	private Integer orderStatus;
	@YsField(nameDataBase="StoreIntegrity", nameJava="storeIntegrity", typeDataBase="tinyint")
	private Integer storeIntegrity;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchasePlanGoods setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcgPurchasePlanGoods setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getSpBm() {
		return spBm;
	}
	public TcgPurchasePlanGoods setSpBm(String spBm) {
		this.spBm = spBm;
		return this;
	}
	public BigDecimal getStockAmount() {
		return stockAmount;
	}
	public TcgPurchasePlanGoods setStockAmount(BigDecimal stockAmount) {
		this.stockAmount = stockAmount;
		return this;
	}
	public Integer getSpAmount() {
		return spAmount;
	}
	public TcgPurchasePlanGoods setSpAmount(Integer spAmount) {
		this.spAmount = spAmount;
		return this;
	}
	public Integer getOrderStatus() {
		return orderStatus;
	}
	public TcgPurchasePlanGoods setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
		return this;
	}
	public Integer getStoreIntegrity() {
		return storeIntegrity;
	}
	public TcgPurchasePlanGoods setStoreIntegrity(Integer storeIntegrity) {
		this.storeIntegrity = storeIntegrity;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchasePlanGoods setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchasePlanGoods setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchasePlanGoods setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchasePlanGoods tcgPurchasePlanGoods(
		String pbid,
		String spBm,
		BigDecimal stockAmount,
		Integer spAmount,
		Integer orderStatus,
		Integer storeIntegrity,
		Integer status
			) {
		TcgPurchasePlanGoods entity = new TcgPurchasePlanGoods();
		entity.setPbid(pbid);
		entity.setSpBm(spBm);
		entity.setStockAmount(stockAmount);
		entity.setSpAmount(spAmount);
		entity.setOrderStatus(orderStatus);
		entity.setStoreIntegrity(storeIntegrity);
		entity.setStatus(status);
		return entity;
	}
}